package com.ruoyi.xiaoshou.service;

import java.util.List;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.xiaoshou.domain.SaleBackRequest;

/**
 * 销售退货申请Service接口
 * 
 * @author lmj
 * @date 2024-10-25
 */
public interface ISaleBackRequestService 
{
    /**
     * 查询销售退货申请
     * 
     * @param id 销售退货申请主键
     * @return 销售退货申请
     */
    public SaleBackRequest selectSaleBackRequestById(Integer id);

    /**
     * 查询销售退货申请列表
     * 
     * @param saleBackRequest 销售退货申请
     * @return 销售退货申请集合
     */
    public List<SaleBackRequest> selectSaleBackRequestList(SaleBackRequest saleBackRequest);

    /**
     * 新增销售退货申请
     * 
     * @param saleBackRequest 销售退货申请
     * @return 结果
     */
    public AjaxResult insertSaleBackRequest(SaleBackRequest saleBackRequest);

    /**
     * 修改销售退货申请
     * 
     * @param saleBackRequest 销售退货申请
     * @return 结果
     */
    public AjaxResult updateSaleBackRequest(SaleBackRequest saleBackRequest);
    public AjaxResult checkSaleBackRequest(Integer[] ids,Integer status,String userId);

    /**
     * 批量删除销售退货申请
     * 
     * @param ids 需要删除的销售退货申请主键集合
     * @return 结果
     */
    public int deleteSaleBackRequestByIds(Integer[] ids);

    /**
     * 删除销售退货申请信息
     * 
     * @param id 销售退货申请主键
     * @return 结果
     */
    public int deleteSaleBackRequestById(Integer id);

    public String updSaleBackRequestByCode(SaleBackRequest saleBackRequest);
}
